/*      */ package eos.moe.dragoncore;
/*      */ import io.netty.buffer.ByteBuf;
/*      */ import io.netty.buffer.ByteBufAllocator;
/*      */ import io.netty.buffer.ByteBufInputStream;
/*      */ import io.netty.buffer.ByteBufOutputStream;
/*      */ import io.netty.handler.codec.DecoderException;
/*      */ import io.netty.handler.codec.EncoderException;
/*      */ import io.netty.util.ByteProcessor;
/*      */ import io.netty.util.ReferenceCounted;
/*      */ import java.io.DataInput;
/*      */ import java.io.DataOutput;
/*      */ import java.io.IOException;
/*      */ import java.io.InputStream;
/*      */ import java.io.OutputStream;
/*      */ import java.nio.ByteBuffer;
/*      */ import java.nio.ByteOrder;
/*      */ import java.nio.channels.FileChannel;
/*      */ import java.nio.channels.GatheringByteChannel;
/*      */ import java.nio.channels.ScatteringByteChannel;
/*      */ import java.nio.charset.Charset;
/*      */ import java.nio.charset.StandardCharsets;
/*      */ import java.util.Date;
/*      */ import java.util.UUID;
/*      */ import javax.annotation.Nullable;
/*      */ import net.minecraft.item.Item;
/*      */ import net.minecraft.item.ItemStack;
/*      */ import net.minecraft.nbt.CompressedStreamTools;
/*      */ import net.minecraft.nbt.NBTSizeTracker;
/*      */ import net.minecraft.nbt.NBTTagCompound;
/*      */ import net.minecraft.network.PacketBuffer;
/*      */ import net.minecraft.util.ResourceLocation;
/*      */ import net.minecraft.util.math.BlockPos;
/*      */ import net.minecraft.util.text.ITextComponent;
/*      */ import net.minecraftforge.fml.relauncher.Side;
/*      */ import net.minecraftforge.fml.relauncher.SideOnly;
/*      */ 
/*      */ public class la extends PacketBuffer {
/*      */   public la(ByteBuf byteBuf) {
/*   39 */     super(byteBuf);
/*   40 */     this.g = byteBuf;
/*      */   }
/*      */ 
/*      */   
/*      */   private final ByteBuf g;
/*      */ 
/*      */   
/*      */   public static int v(int a) {
/*   48 */     for (int i = 1; i < 5; i++) {
/*   49 */       if ((a & -1 << i * 7) == 0) {
/*   50 */         return i;
/*      */       }
/*      */     } 
/*      */     
/*   54 */     return 5;
/*      */   }
/*      */   
/*      */   public la writeByteArray(byte[] arrayOfByte) {
/*   58 */     writeVarInt(arrayOfByte.length);
/*   59 */     writeBytes(arrayOfByte);
/*   60 */     return this;
/*      */   }
/*      */   
/*      */   public byte[] func_179251_a() {
/*   64 */     return func_189425_b(readableBytes());
/*      */   }
/*      */   
/*      */   public byte[] func_189425_b(int i) {
/*   68 */     int j = func_150792_a();
/*      */     
/*   70 */     if (j > i) {
/*   71 */       throw new DecoderException("ByteArray with size " + j + " is bigger than allowed " + i);
/*      */     }
/*   73 */     byte[] arrayOfByte = new byte[j];
/*   74 */     readBytes(arrayOfByte);
/*   75 */     return arrayOfByte;
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public la writeVarIntArray(int[] arrayOfInt) {
/*   83 */     writeVarInt(arrayOfInt.length);
/*      */     
/*   85 */     for (int i : arrayOfInt) {
/*   86 */       writeVarInt(i);
/*      */     }
/*      */     
/*   89 */     return this;
/*      */   }
/*      */   
/*      */   public int[] func_186863_b() {
/*   93 */     return func_189424_c(readableBytes());
/*      */   }
/*      */   
/*      */   public int[] func_189424_c(int i) {
/*   97 */     int j = func_150792_a();
/*      */     
/*   99 */     if (j > i) {
/*  100 */       throw new DecoderException("VarIntArray with size " + j + " is bigger than allowed " + i);
/*      */     }
/*  102 */     int[] arrayOfInt = new int[j];
/*      */     
/*  104 */     for (int k = 0; k < arrayOfInt.length; k++) {
/*  105 */       arrayOfInt[k] = func_150792_a();
/*      */     }
/*      */     
/*  108 */     return arrayOfInt;
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public la writeLongArray(long[] arrayOfLong) {
/*  116 */     writeVarInt(arrayOfLong.length);
/*      */     
/*  118 */     for (long l : arrayOfLong) {
/*  119 */       writeLong(l);
/*      */     }
/*      */     
/*  122 */     return this;
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   @SideOnly(Side.CLIENT)
/*      */   public long[] func_186873_b(@Nullable long[] a) {
/*  130 */     return func_189423_a(a, readableBytes() / 8);
/*      */   }
/*      */   
/*      */   @SideOnly(Side.CLIENT)
/*      */   public long[] func_189423_a(@Nullable long[] array, int a) {
/*  135 */     int i = func_150792_a();
/*      */     
/*  137 */     if (array == null || array.length != i) {
/*  138 */       if (i > a) {
/*  139 */         throw new DecoderException("LongArray with size " + i + " is bigger than allowed " + a);
/*      */       }
/*      */       
/*  142 */       array = new long[i];
/*      */     } 
/*      */     
/*  145 */     for (int j = 0; j < array.length; j++) {
/*  146 */       array[j] = readLong();
/*      */     }
/*      */     
/*  149 */     return array;
/*      */   }
/*      */   
/*      */   public BlockPos func_179259_c() {
/*  153 */     return BlockPos.func_177969_a(readLong());
/*      */   }
/*      */   
/*      */   public la writeBlockPos(BlockPos blockPos) {
/*  157 */     writeLong(blockPos.func_177986_g());
/*  158 */     return this;
/*      */   }
/*      */   
/*      */   public ITextComponent func_179258_d() throws IOException {
/*  162 */     return ITextComponent.Serializer.func_150699_a(func_150789_c(32767));
/*      */   }
/*      */   
/*      */   public la writeTextComponent(ITextComponent iTextComponent) {
/*  166 */     return writeString(ITextComponent.Serializer.func_150696_a(iTextComponent));
/*      */   }
/*      */   
/*      */   public <T extends Enum<T>> T func_179257_a(Class clazz) {
/*  170 */     return (T)((Enum[])clazz.getEnumConstants())[func_150792_a()];
/*      */   }
/*      */   
/*      */   public la writeEnumValue(Enum enum_) {
/*  174 */     return writeVarInt(enum_.ordinal());
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public int func_150792_a() {
/*      */     byte b;
/*  182 */     int i = 0;
/*  183 */     int j = 0;
/*      */     
/*      */     do {
/*  186 */       b = readByte();
/*  187 */       i |= (b & Byte.MAX_VALUE) << j++ * 7;
/*      */       
/*  189 */       if (j > 5) {
/*  190 */         throw new RuntimeException("VarInt too big");
/*      */       }
/*      */     }
/*  193 */     while ((b & 0x80) == 128);
/*      */ 
/*      */ 
/*      */ 
/*      */     
/*  198 */     return i;
/*      */   }
/*      */   public long func_179260_f() {
/*      */     byte b;
/*  202 */     long l = 0L;
/*  203 */     int i = 0;
/*      */     
/*      */     do {
/*  206 */       b = readByte();
/*  207 */       l |= (b & Byte.MAX_VALUE) << i++ * 7;
/*      */       
/*  209 */       if (i > 10) {
/*  210 */         throw new RuntimeException("VarLong too big");
/*      */       }
/*      */     }
/*  213 */     while ((b & 0x80) == 128);
/*      */ 
/*      */ 
/*      */ 
/*      */     
/*  218 */     return l;
/*      */   }
/*      */   
/*      */   public la writeUniqueId(UUID uUID) {
/*  222 */     writeLong(uUID.getMostSignificantBits());
/*  223 */     writeLong(uUID.getLeastSignificantBits());
/*  224 */     return this;
/*      */   }
/*      */   
/*      */   public UUID func_179253_g() {
/*  228 */     return new UUID(readLong(), readLong());
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public la writeVarInt(int i) {
/*  238 */     while ((i & 0xFFFFFF80) != 0) {
/*  239 */       writeByte(i & 0x7F | 0x80);
/*  240 */       i >>>= 7;
/*      */     } 
/*      */     
/*  243 */     writeByte(i);
/*  244 */     return this;
/*      */   }
/*      */   
/*      */   public la writeVarLong(long l) {
/*  248 */     while ((l & 0xFFFFFFFFFFFFFF80L) != 0L) {
/*  249 */       writeByte((int)(l & 0x7FL) | 0x80);
/*  250 */       l >>>= 7L;
/*      */     } 
/*      */     
/*  253 */     writeByte((int)l);
/*  254 */     return this;
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public la writeCompoundTag(@Nullable NBTTagCompound a) {
/*  261 */     if (a == null) {
/*  262 */       writeByte(0);
/*      */     } else {
/*      */       try {
/*  265 */         CompressedStreamTools.func_74800_a(a, (DataOutput)new ByteBufOutputStream((ByteBuf)this));
/*  266 */       } catch (IOException iOException) {
/*  267 */         throw new EncoderException(iOException);
/*      */       } 
/*      */     } 
/*      */     
/*  271 */     return this;
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   @Nullable
/*      */   public NBTTagCompound func_150793_b() throws IOException {
/*  279 */     int i = readerIndex();
/*  280 */     byte b = readByte();
/*      */     
/*  282 */     if (b == 0) {
/*  283 */       return null;
/*      */     }
/*  285 */     readerIndex(i);
/*      */     
/*      */     try {
/*  288 */       return CompressedStreamTools.func_152456_a((DataInput)new ByteBufInputStream((ByteBuf)this), new NBTSizeTracker(2097152L));
/*  289 */     } catch (IOException iOException) {
/*  290 */       throw new EncoderException(iOException);
/*      */     } 
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public la writeItemStack(ItemStack itemStack) {
/*  299 */     if (itemStack.func_190926_b()) {
/*  300 */       writeShort(-1);
/*      */     } else {
/*  302 */       writeShort(Item.func_150891_b(itemStack.func_77973_b()));
/*  303 */       writeByte(itemStack.func_190916_E());
/*  304 */       writeShort(itemStack.func_77960_j());
/*  305 */       NBTTagCompound nBTTagCompound = null;
/*      */       
/*  307 */       if (itemStack.func_77973_b().func_77645_m() || itemStack.func_77973_b().func_77651_p()) {
/*  308 */         nBTTagCompound = itemStack.func_77973_b().getNBTShareTag(itemStack);
/*      */       }
/*      */       
/*  311 */       writeCompoundTag(nBTTagCompound);
/*      */     } 
/*      */     
/*  314 */     return this;
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public ItemStack func_150791_c() throws IOException {
/*  321 */     int i = readShort();
/*      */     
/*  323 */     if (i < 0) {
/*  324 */       return ItemStack.field_190927_a;
/*      */     }
/*  326 */     int j = readByte();
/*  327 */     int k = readShort();
/*  328 */     ItemStack itemStack = new ItemStack(Item.func_150899_d(i), j, k);
/*  329 */     itemStack.func_77973_b().readNBTShareTag(itemStack, func_150793_b());
/*  330 */     return itemStack;
/*      */   }
/*      */ 
/*      */   
/*      */   public String func_150789_c(int i) {
/*  335 */     return readString();
/*      */   }
/*      */ 
/*      */ 
/*      */ 
/*      */ 
/*      */   
/*      */   public String readString() {
/*  343 */     int i = readInt();
/*  344 */     if (i < 0) {
/*  345 */       throw new DecoderException("The received encoded string buffer length is less than zero! Weird string!");
/*      */     }
/*  347 */     String str = toString(readerIndex(), i, StandardCharsets.UTF_8);
/*  348 */     readerIndex(readerIndex() + i);
/*  349 */     return str;
/*      */   }
/*      */ 
/*      */   
/*      */   public la writeString(String str) {
/*  354 */     byte[] arrayOfByte = str.getBytes(StandardCharsets.UTF_8);
/*      */     
/*  356 */     if (arrayOfByte.length > 32767) {
/*  357 */       throw new EncoderException("String too big (was " + arrayOfByte.length + " bytes encoded, max " + '翿' + ")");
/*      */     }
/*  359 */     writeVarInt(arrayOfByte.length);
/*  360 */     writeBytes(arrayOfByte);
/*  361 */     return this;
/*      */   }
/*      */ 
/*      */   
/*      */   public ResourceLocation func_192575_l() {
/*  366 */     return new ResourceLocation(func_150789_c(32767));
/*      */   }
/*      */   
/*      */   public la writeResourceLocation(ResourceLocation resourceLocation) {
/*  370 */     writeString(resourceLocation.toString());
/*  371 */     return this;
/*      */   }
/*      */   
/*      */   public Date func_192573_m() {
/*  375 */     return new Date(readLong());
/*      */   }
/*      */   
/*      */   public la writeTime(Date date) {
/*  379 */     writeLong(date.getTime());
/*  380 */     return this;
/*      */   }
/*      */   
/*      */   public int capacity() {
/*  384 */     return this.g.capacity();
/*      */   }
/*      */   
/*      */   public ByteBuf capacity(int i) {
/*  388 */     return this.g.capacity(i);
/*      */   }
/*      */   
/*      */   public int maxCapacity() {
/*  392 */     return this.g.maxCapacity();
/*      */   }
/*      */   
/*      */   public ByteBufAllocator alloc() {
/*  396 */     return this.g.alloc();
/*      */   }
/*      */   
/*      */   public ByteOrder order() {
/*  400 */     return this.g.order();
/*      */   }
/*      */   
/*      */   public ByteBuf order(ByteOrder byteOrder) {
/*  404 */     return this.g.order(byteOrder);
/*      */   }
/*      */   
/*      */   public ByteBuf unwrap() {
/*  408 */     return this.g.unwrap();
/*      */   }
/*      */   
/*      */   public boolean isDirect() {
/*  412 */     return this.g.isDirect();
/*      */   }
/*      */   
/*      */   public boolean isReadOnly() {
/*  416 */     return this.g.isReadOnly();
/*      */   }
/*      */   
/*      */   public ByteBuf asReadOnly() {
/*  420 */     return this.g.asReadOnly();
/*      */   }
/*      */   
/*      */   public int readerIndex() {
/*  424 */     return this.g.readerIndex();
/*      */   }
/*      */   
/*      */   public ByteBuf readerIndex(int i) {
/*  428 */     return this.g.readerIndex(i);
/*      */   }
/*      */   
/*      */   public int writerIndex() {
/*  432 */     return this.g.writerIndex();
/*      */   }
/*      */   
/*      */   public ByteBuf writerIndex(int i) {
/*  436 */     return this.g.writerIndex(i);
/*      */   }
/*      */   
/*      */   public ByteBuf setIndex(int i, int j) {
/*  440 */     return this.g.setIndex(i, j);
/*      */   }
/*      */   
/*      */   public int readableBytes() {
/*  444 */     return this.g.readableBytes();
/*      */   }
/*      */   
/*      */   public int writableBytes() {
/*  448 */     return this.g.writableBytes();
/*      */   }
/*      */   
/*      */   public int maxWritableBytes() {
/*  452 */     return this.g.maxWritableBytes();
/*      */   }
/*      */   
/*      */   public boolean isReadable() {
/*  456 */     return this.g.isReadable();
/*      */   }
/*      */   
/*      */   public boolean isReadable(int i) {
/*  460 */     return this.g.isReadable(i);
/*      */   }
/*      */   
/*      */   public boolean isWritable() {
/*  464 */     return this.g.isWritable();
/*      */   }
/*      */   
/*      */   public boolean isWritable(int i) {
/*  468 */     return this.g.isWritable(i);
/*      */   }
/*      */   
/*      */   public ByteBuf clear() {
/*  472 */     return this.g.clear();
/*      */   }
/*      */   
/*      */   public ByteBuf markReaderIndex() {
/*  476 */     return this.g.markReaderIndex();
/*      */   }
/*      */   
/*      */   public ByteBuf resetReaderIndex() {
/*  480 */     return this.g.resetReaderIndex();
/*      */   }
/*      */   
/*      */   public ByteBuf markWriterIndex() {
/*  484 */     return this.g.markWriterIndex();
/*      */   }
/*      */   
/*      */   public ByteBuf resetWriterIndex() {
/*  488 */     return this.g.resetWriterIndex();
/*      */   }
/*      */   
/*      */   public ByteBuf discardReadBytes() {
/*  492 */     return this.g.discardReadBytes();
/*      */   }
/*      */   
/*      */   public ByteBuf discardSomeReadBytes() {
/*  496 */     return this.g.discardSomeReadBytes();
/*      */   }
/*      */   
/*      */   public ByteBuf ensureWritable(int i) {
/*  500 */     return this.g.ensureWritable(i);
/*      */   }
/*      */   
/*      */   public int ensureWritable(int i, boolean bool) {
/*  504 */     return this.g.ensureWritable(i, bool);
/*      */   }
/*      */   
/*      */   public boolean getBoolean(int i) {
/*  508 */     return this.g.getBoolean(i);
/*      */   }
/*      */   
/*      */   public byte getByte(int i) {
/*  512 */     return this.g.getByte(i);
/*      */   }
/*      */   
/*      */   public short getUnsignedByte(int i) {
/*  516 */     return this.g.getUnsignedByte(i);
/*      */   }
/*      */   
/*      */   public short getShort(int i) {
/*  520 */     return this.g.getShort(i);
/*      */   }
/*      */   
/*      */   public short getShortLE(int i) {
/*  524 */     return this.g.getShortLE(i);
/*      */   }
/*      */   
/*      */   public int getUnsignedShort(int i) {
/*  528 */     return this.g.getUnsignedShort(i);
/*      */   }
/*      */   
/*      */   public int getUnsignedShortLE(int i) {
/*  532 */     return this.g.getUnsignedShortLE(i);
/*      */   }
/*      */   
/*      */   public int getMedium(int i) {
/*  536 */     return this.g.getMedium(i);
/*      */   }
/*      */   
/*      */   public int getMediumLE(int i) {
/*  540 */     return this.g.getMediumLE(i);
/*      */   }
/*      */   
/*      */   public int getUnsignedMedium(int i) {
/*  544 */     return this.g.getUnsignedMedium(i);
/*      */   }
/*      */   
/*      */   public int getUnsignedMediumLE(int i) {
/*  548 */     return this.g.getUnsignedMediumLE(i);
/*      */   }
/*      */   
/*      */   public int getInt(int i) {
/*  552 */     return this.g.getInt(i);
/*      */   }
/*      */   
/*      */   public int getIntLE(int i) {
/*  556 */     return this.g.getIntLE(i);
/*      */   }
/*      */   
/*      */   public long getUnsignedInt(int i) {
/*  560 */     return this.g.getUnsignedInt(i);
/*      */   }
/*      */   
/*      */   public long getUnsignedIntLE(int i) {
/*  564 */     return this.g.getUnsignedIntLE(i);
/*      */   }
/*      */   
/*      */   public long getLong(int i) {
/*  568 */     return this.g.getLong(i);
/*      */   }
/*      */   
/*      */   public long getLongLE(int i) {
/*  572 */     return this.g.getLongLE(i);
/*      */   }
/*      */   
/*      */   public char getChar(int i) {
/*  576 */     return this.g.getChar(i);
/*      */   }
/*      */   
/*      */   public float getFloat(int i) {
/*  580 */     return this.g.getFloat(i);
/*      */   }
/*      */   
/*      */   public double getDouble(int i) {
/*  584 */     return this.g.getDouble(i);
/*      */   }
/*      */   
/*      */   public ByteBuf getBytes(int i, ByteBuf byteBuf) {
/*  588 */     return this.g.getBytes(i, byteBuf);
/*      */   }
/*      */   
/*      */   public ByteBuf getBytes(int i, ByteBuf byteBuf, int j) {
/*  592 */     return this.g.getBytes(i, byteBuf, j);
/*      */   }
/*      */   
/*      */   public ByteBuf getBytes(int i, ByteBuf byteBuf, int j, int k) {
/*  596 */     return this.g.getBytes(i, byteBuf, j, k);
/*      */   }
/*      */   
/*      */   public ByteBuf getBytes(int i, byte[] arrayOfByte) {
/*  600 */     return this.g.getBytes(i, arrayOfByte);
/*      */   }
/*      */   
/*      */   public ByteBuf getBytes(int i, byte[] arrayOfByte, int j, int k) {
/*  604 */     return this.g.getBytes(i, arrayOfByte, j, k);
/*      */   }
/*      */   
/*      */   public ByteBuf getBytes(int i, ByteBuffer byteBuffer) {
/*  608 */     return this.g.getBytes(i, byteBuffer);
/*      */   }
/*      */   
/*      */   public ByteBuf getBytes(int i, OutputStream outputStream, int j) throws IOException {
/*  612 */     return this.g.getBytes(i, outputStream, j);
/*      */   }
/*      */   
/*      */   public int getBytes(int i, GatheringByteChannel gatheringByteChannel, int j) throws IOException {
/*  616 */     return this.g.getBytes(i, gatheringByteChannel, j);
/*      */   }
/*      */   
/*      */   public int getBytes(int i, FileChannel fileChannel, long l, int j) throws IOException {
/*  620 */     return this.g.getBytes(i, fileChannel, l, j);
/*      */   }
/*      */   
/*      */   public CharSequence getCharSequence(int i, int j, Charset charset) {
/*  624 */     return this.g.getCharSequence(i, j, charset);
/*      */   }
/*      */   
/*      */   public ByteBuf setBoolean(int i, boolean bool) {
/*  628 */     return this.g.setBoolean(i, bool);
/*      */   }
/*      */   
/*      */   public ByteBuf setByte(int i, int j) {
/*  632 */     return this.g.setByte(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setShort(int i, int j) {
/*  636 */     return this.g.setShort(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setShortLE(int i, int j) {
/*  640 */     return this.g.setShortLE(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setMedium(int i, int j) {
/*  644 */     return this.g.setMedium(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setMediumLE(int i, int j) {
/*  648 */     return this.g.setMediumLE(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setInt(int i, int j) {
/*  652 */     return this.g.setInt(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setIntLE(int i, int j) {
/*  656 */     return this.g.setIntLE(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setLong(int i, long l) {
/*  660 */     return this.g.setLong(i, l);
/*      */   }
/*      */   
/*      */   public ByteBuf setLongLE(int i, long l) {
/*  664 */     return this.g.setLongLE(i, l);
/*      */   }
/*      */   
/*      */   public ByteBuf setChar(int i, int j) {
/*  668 */     return this.g.setChar(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setFloat(int i, float f) {
/*  672 */     return this.g.setFloat(i, f);
/*      */   }
/*      */   
/*      */   public ByteBuf setDouble(int i, double d) {
/*  676 */     return this.g.setDouble(i, d);
/*      */   }
/*      */   
/*      */   public ByteBuf setBytes(int i, ByteBuf byteBuf) {
/*  680 */     return this.g.setBytes(i, byteBuf);
/*      */   }
/*      */   
/*      */   public ByteBuf setBytes(int i, ByteBuf byteBuf, int j) {
/*  684 */     return this.g.setBytes(i, byteBuf, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setBytes(int i, ByteBuf byteBuf, int j, int k) {
/*  688 */     return this.g.setBytes(i, byteBuf, j, k);
/*      */   }
/*      */   
/*      */   public ByteBuf setBytes(int i, byte[] arrayOfByte) {
/*  692 */     return this.g.setBytes(i, arrayOfByte);
/*      */   }
/*      */   
/*      */   public ByteBuf setBytes(int i, byte[] arrayOfByte, int j, int k) {
/*  696 */     return this.g.setBytes(i, arrayOfByte, j, k);
/*      */   }
/*      */   
/*      */   public ByteBuf setBytes(int i, ByteBuffer byteBuffer) {
/*  700 */     return this.g.setBytes(i, byteBuffer);
/*      */   }
/*      */   
/*      */   public int setBytes(int i, InputStream inputStream, int j) throws IOException {
/*  704 */     return this.g.setBytes(i, inputStream, j);
/*      */   }
/*      */   
/*      */   public int setBytes(int i, ScatteringByteChannel scatteringByteChannel, int j) throws IOException {
/*  708 */     return this.g.setBytes(i, scatteringByteChannel, j);
/*      */   }
/*      */   
/*      */   public int setBytes(int i, FileChannel fileChannel, long l, int j) throws IOException {
/*  712 */     return this.g.setBytes(i, fileChannel, l, j);
/*      */   }
/*      */   
/*      */   public ByteBuf setZero(int i, int j) {
/*  716 */     return this.g.setZero(i, j);
/*      */   }
/*      */   
/*      */   public int setCharSequence(int i, CharSequence charSequence, Charset charset) {
/*  720 */     return this.g.setCharSequence(i, charSequence, charset);
/*      */   }
/*      */   
/*      */   public boolean readBoolean() {
/*  724 */     return this.g.readBoolean();
/*      */   }
/*      */   
/*      */   public byte readByte() {
/*  728 */     return this.g.readByte();
/*      */   }
/*      */   
/*      */   public short readUnsignedByte() {
/*  732 */     return this.g.readUnsignedByte();
/*      */   }
/*      */   
/*      */   public short readShort() {
/*  736 */     return this.g.readShort();
/*      */   }
/*      */   
/*      */   public short readShortLE() {
/*  740 */     return this.g.readShortLE();
/*      */   }
/*      */   
/*      */   public int readUnsignedShort() {
/*  744 */     return this.g.readUnsignedShort();
/*      */   }
/*      */   
/*      */   public int readUnsignedShortLE() {
/*  748 */     return this.g.readUnsignedShortLE();
/*      */   }
/*      */   
/*      */   public int readMedium() {
/*  752 */     return this.g.readMedium();
/*      */   }
/*      */   
/*      */   public int readMediumLE() {
/*  756 */     return this.g.readMediumLE();
/*      */   }
/*      */   
/*      */   public int readUnsignedMedium() {
/*  760 */     return this.g.readUnsignedMedium();
/*      */   }
/*      */   
/*      */   public int readUnsignedMediumLE() {
/*  764 */     return this.g.readUnsignedMediumLE();
/*      */   }
/*      */   
/*      */   public int readInt() {
/*  768 */     return this.g.readInt();
/*      */   }
/*      */   
/*      */   public int readIntLE() {
/*  772 */     return this.g.readIntLE();
/*      */   }
/*      */   
/*      */   public long readUnsignedInt() {
/*  776 */     return this.g.readUnsignedInt();
/*      */   }
/*      */   
/*      */   public long readUnsignedIntLE() {
/*  780 */     return this.g.readUnsignedIntLE();
/*      */   }
/*      */   
/*      */   public long readLong() {
/*  784 */     return this.g.readLong();
/*      */   }
/*      */   
/*      */   public long readLongLE() {
/*  788 */     return this.g.readLongLE();
/*      */   }
/*      */   
/*      */   public char readChar() {
/*  792 */     return this.g.readChar();
/*      */   }
/*      */   
/*      */   public float readFloat() {
/*  796 */     return this.g.readFloat();
/*      */   }
/*      */   
/*      */   public double readDouble() {
/*  800 */     return this.g.readDouble();
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(int i) {
/*  804 */     return this.g.readBytes(i);
/*      */   }
/*      */   
/*      */   public ByteBuf readSlice(int i) {
/*  808 */     return this.g.readSlice(i);
/*      */   }
/*      */   
/*      */   public ByteBuf readRetainedSlice(int i) {
/*  812 */     return this.g.readRetainedSlice(i);
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(ByteBuf byteBuf) {
/*  816 */     return this.g.readBytes(byteBuf);
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(ByteBuf byteBuf, int i) {
/*  820 */     return this.g.readBytes(byteBuf, i);
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(ByteBuf byteBuf, int i, int j) {
/*  824 */     return this.g.readBytes(byteBuf, i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(byte[] arrayOfByte) {
/*  828 */     return this.g.readBytes(arrayOfByte);
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(byte[] arrayOfByte, int i, int j) {
/*  832 */     return this.g.readBytes(arrayOfByte, i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(ByteBuffer byteBuffer) {
/*  836 */     return this.g.readBytes(byteBuffer);
/*      */   }
/*      */   
/*      */   public ByteBuf readBytes(OutputStream outputStream, int i) throws IOException {
/*  840 */     return this.g.readBytes(outputStream, i);
/*      */   }
/*      */   
/*      */   public int readBytes(GatheringByteChannel gatheringByteChannel, int i) throws IOException {
/*  844 */     return this.g.readBytes(gatheringByteChannel, i);
/*      */   }
/*      */   
/*      */   public CharSequence readCharSequence(int i, Charset charset) {
/*  848 */     return this.g.readCharSequence(i, charset);
/*      */   }
/*      */   
/*      */   public int readBytes(FileChannel fileChannel, long l, int i) throws IOException {
/*  852 */     return this.g.readBytes(fileChannel, l, i);
/*      */   }
/*      */   
/*      */   public ByteBuf skipBytes(int i) {
/*  856 */     return this.g.skipBytes(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeBoolean(boolean bool) {
/*  860 */     return this.g.writeBoolean(bool);
/*      */   }
/*      */   
/*      */   public ByteBuf writeByte(int i) {
/*  864 */     return this.g.writeByte(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeShort(int i) {
/*  868 */     return this.g.writeShort(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeShortLE(int i) {
/*  872 */     return this.g.writeShortLE(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeMedium(int i) {
/*  876 */     return this.g.writeMedium(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeMediumLE(int i) {
/*  880 */     return this.g.writeMediumLE(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeInt(int i) {
/*  884 */     return this.g.writeInt(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeIntLE(int i) {
/*  888 */     return this.g.writeIntLE(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeLong(long l) {
/*  892 */     return this.g.writeLong(l);
/*      */   }
/*      */   
/*      */   public ByteBuf writeLongLE(long l) {
/*  896 */     return this.g.writeLongLE(l);
/*      */   }
/*      */   
/*      */   public ByteBuf writeChar(int i) {
/*  900 */     return this.g.writeChar(i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeFloat(float f) {
/*  904 */     return this.g.writeFloat(f);
/*      */   }
/*      */   
/*      */   public ByteBuf writeDouble(double d) {
/*  908 */     return this.g.writeDouble(d);
/*      */   }
/*      */   
/*      */   public ByteBuf writeBytes(ByteBuf byteBuf) {
/*  912 */     return this.g.writeBytes(byteBuf);
/*      */   }
/*      */   
/*      */   public ByteBuf writeBytes(ByteBuf byteBuf, int i) {
/*  916 */     return this.g.writeBytes(byteBuf, i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeBytes(ByteBuf byteBuf, int i, int j) {
/*  920 */     return this.g.writeBytes(byteBuf, i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf writeBytes(byte[] arrayOfByte) {
/*  924 */     return this.g.writeBytes(arrayOfByte);
/*      */   }
/*      */   
/*      */   public ByteBuf writeBytes(byte[] arrayOfByte, int i, int j) {
/*  928 */     return this.g.writeBytes(arrayOfByte, i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf writeBytes(ByteBuffer byteBuffer) {
/*  932 */     return this.g.writeBytes(byteBuffer);
/*      */   }
/*      */   
/*      */   public int writeBytes(InputStream inputStream, int i) throws IOException {
/*  936 */     return this.g.writeBytes(inputStream, i);
/*      */   }
/*      */   
/*      */   public int writeBytes(ScatteringByteChannel scatteringByteChannel, int i) throws IOException {
/*  940 */     return this.g.writeBytes(scatteringByteChannel, i);
/*      */   }
/*      */   
/*      */   public int writeBytes(FileChannel fileChannel, long l, int i) throws IOException {
/*  944 */     return this.g.writeBytes(fileChannel, l, i);
/*      */   }
/*      */   
/*      */   public ByteBuf writeZero(int i) {
/*  948 */     return this.g.writeZero(i);
/*      */   }
/*      */   
/*      */   public int writeCharSequence(CharSequence charSequence, Charset charset) {
/*  952 */     return this.g.writeCharSequence(charSequence, charset);
/*      */   }
/*      */   
/*      */   public int indexOf(int i, int j, byte b) {
/*  956 */     return this.g.indexOf(i, j, b);
/*      */   }
/*      */   
/*      */   public int bytesBefore(byte b) {
/*  960 */     return this.g.bytesBefore(b);
/*      */   }
/*      */   
/*      */   public int bytesBefore(int i, byte b) {
/*  964 */     return this.g.bytesBefore(i, b);
/*      */   }
/*      */   
/*      */   public int bytesBefore(int i, int j, byte b) {
/*  968 */     return this.g.bytesBefore(i, j, b);
/*      */   }
/*      */   
/*      */   public int forEachByte(ByteProcessor byteProcessor) {
/*  972 */     return this.g.forEachByte(byteProcessor);
/*      */   }
/*      */   
/*      */   public int forEachByte(int i, int j, ByteProcessor byteProcessor) {
/*  976 */     return this.g.forEachByte(i, j, byteProcessor);
/*      */   }
/*      */   
/*      */   public int forEachByteDesc(ByteProcessor byteProcessor) {
/*  980 */     return this.g.forEachByteDesc(byteProcessor);
/*      */   }
/*      */   
/*      */   public int forEachByteDesc(int i, int j, ByteProcessor byteProcessor) {
/*  984 */     return this.g.forEachByteDesc(i, j, byteProcessor);
/*      */   }
/*      */   
/*      */   public ByteBuf copy() {
/*  988 */     return this.g.copy();
/*      */   }
/*      */   
/*      */   public ByteBuf copy(int i, int j) {
/*  992 */     return this.g.copy(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf slice() {
/*  996 */     return this.g.slice();
/*      */   }
/*      */   
/*      */   public ByteBuf retainedSlice() {
/* 1000 */     return this.g.retainedSlice();
/*      */   }
/*      */   
/*      */   public ByteBuf slice(int i, int j) {
/* 1004 */     return this.g.slice(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf retainedSlice(int i, int j) {
/* 1008 */     return this.g.retainedSlice(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuf duplicate() {
/* 1012 */     return this.g.duplicate();
/*      */   }
/*      */   
/*      */   public ByteBuf retainedDuplicate() {
/* 1016 */     return this.g.retainedDuplicate();
/*      */   }
/*      */   
/*      */   public int nioBufferCount() {
/* 1020 */     return this.g.nioBufferCount();
/*      */   }
/*      */   
/*      */   public ByteBuffer nioBuffer() {
/* 1024 */     return this.g.nioBuffer();
/*      */   }
/*      */   
/*      */   public ByteBuffer nioBuffer(int i, int j) {
/* 1028 */     return this.g.nioBuffer(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuffer internalNioBuffer(int i, int j) {
/* 1032 */     return this.g.internalNioBuffer(i, j);
/*      */   }
/*      */   
/*      */   public ByteBuffer[] nioBuffers() {
/* 1036 */     return this.g.nioBuffers();
/*      */   }
/*      */   
/*      */   public ByteBuffer[] nioBuffers(int i, int j) {
/* 1040 */     return this.g.nioBuffers(i, j);
/*      */   }
/*      */   
/*      */   public boolean hasArray() {
/* 1044 */     return this.g.hasArray();
/*      */   }
/*      */   
/*      */   public byte[] array() {
/* 1048 */     return this.g.array();
/*      */   }
/*      */   
/*      */   public int arrayOffset() {
/* 1052 */     return this.g.arrayOffset();
/*      */   }
/*      */   
/*      */   public boolean hasMemoryAddress() {
/* 1056 */     return this.g.hasMemoryAddress();
/*      */   }
/*      */   
/*      */   public long memoryAddress() {
/* 1060 */     return this.g.memoryAddress();
/*      */   }
/*      */   
/*      */   public String toString(Charset charset) {
/* 1064 */     return this.g.toString(charset);
/*      */   }
/*      */   
/*      */   public String toString(int i, int j, Charset charset) {
/* 1068 */     return this.g.toString(i, j, charset);
/*      */   }
/*      */   
/*      */   public int hashCode() {
/* 1072 */     return this.g.hashCode();
/*      */   }
/*      */   
/*      */   public boolean equals(Object object) {
/* 1076 */     return this.g.equals(object);
/*      */   }
/*      */   
/*      */   public int compareTo(ByteBuf byteBuf) {
/* 1080 */     return this.g.compareTo(byteBuf);
/*      */   }
/*      */   
/*      */   public String toString() {
/* 1084 */     return this.g.toString();
/*      */   }
/*      */   
/*      */   public ByteBuf retain(int i) {
/* 1088 */     return this.g.retain(i);
/*      */   }
/*      */   
/*      */   public ByteBuf retain() {
/* 1092 */     return this.g.retain();
/*      */   }
/*      */   
/*      */   public ByteBuf touch() {
/* 1096 */     return this.g.touch();
/*      */   }
/*      */   
/*      */   public ByteBuf touch(Object object) {
/* 1100 */     return this.g.touch(object);
/*      */   }
/*      */   
/*      */   public int refCnt() {
/* 1104 */     return this.g.refCnt();
/*      */   }
/*      */   
/*      */   public boolean release() {
/* 1108 */     return this.g.release();
/*      */   }
/*      */   
/*      */   public boolean release(int i) {
/* 1112 */     return this.g.release(i);
/*      */   }
/*      */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\la.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */